package com.sc.nft.entity.minimall;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.sc.nft.enums.MallUserWalletDetailTypeEnum;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城用户钱包明细
 * </p>
 *
 * @author author
 * @since 2024-05-20
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_mall_user_wallet_detail")
@ApiModel(value="ScMallUserWalletDetail对象", description="商城用户钱包明细")
public class MallUserWalletDetail extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "小程序用户Id")
    private Long miniUserId;

    @ApiModelProperty(value = "商城用户钱包Id")
    private Long miniUserWalletId;

    @ApiModelProperty(value = "类型")
    private MallUserWalletDetailTypeEnum type;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "手续费")
    private BigDecimal charge;

    @ApiModelProperty(value = "实际金额")
    private BigDecimal realAmount;

    @ApiModelProperty(value = "交易前余额")
    private BigDecimal beforeBalance;

    @ApiModelProperty(value = "交易后余额")
    private BigDecimal afterBalance;

    @ApiModelProperty(value = "是否是加 0:否 1:是")
    private Boolean isAdd;
}
